﻿using System;
using System.Collections.Generic;
using System.Text;

namespace OgilvyOne.BLL
{
    /// <summary>
    /// 模板标签定义,取标签定义名方法值
    /// <cms:labelmethod value="标签定义名"></cms:labelmethod>
    /// </summary>
    class LabelMethodContentLabel : LabelCommonLabel
    {
        private ContentLabel cl;
        public LabelMethodContentLabel(CommonModel model)
            : base(model)
        {
            cl = new ContentLabel(model);
        }

        public override string GetLabelLabelHtml()
        {
            cl.LabelStr = LabelStr;
            
            cl.MethodName = GetLabelValue();
            return cl.GetLabelHtml();
        }
    }
}
